﻿using System.Threading.Tasks;
using NewFormatProject.Infrastructure.Atrributes;
using NewFormatProject.Infrastructure.Dto.Requests.Objects;
using NewFormatProject.Infrastructure.Dto.Responses;

namespace NewFormatProject.Server.Interfaces
{
    [ProvideClassOrInterface]
    public interface IRightConfigServer
    {
        Task<ResponseApiDto> Detail(int id);
        Task<ResponseApiDto> Pagination(int page,int limit,string key);
        Task<ResponseApiDto> Add(RequestSysRightConfigsDto dto);
        Task<ResponseApiDto> Update(RequestSysRightConfigsDto dto);
        Task<ResponseApiDto> Delete(RequestSysRightConfigsDto dto);
    }
}
